/**

 *//* Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2022-04-27
 * Time: 14:50*//*
public class Narcissus {
    static boolean Number(int a){
        int count=0;
        int temp=a;
        while(temp!=0){
            temp/=10;
            count++;
        }
        int sum=0;
         temp=a;

        for (int i = 0; i < count; i++) {
            sum+=Math.pow(temp%10,count);
            temp/=10;
        }
        if(sum==a){
            return true;
        }else{
            return false;
        }
    }

    public static void main(String[] args) {
        System.out.println("0-999中的水仙花数：");
        for (int i = 0; i < 1000; i++) {
         if(Number(i)==true){
                System.out.println(i);
            }
        }
    }
}
*/
